package com.rise.itframe.modules.sys.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.rise.itframe.common.persistence.Page;
import com.rise.itframe.common.service.CrudService;
import com.rise.itframe.modules.sys.dao.UserMatchDao;
import com.rise.itframe.modules.sys.entity.UserMatch;

/**
 * 归档管理Service
 *
 * @author ming
 * @version 2015-02-13
 */
@Service
@Transactional(readOnly = true)
public class UserMatchService extends CrudService<UserMatchDao, UserMatch> {

    @Autowired
    private UserMatchDao userMatchDao;

    @Override
    public UserMatch get(String id) {
        return userMatchDao.get(id);
    }


    @Override
    public Page<UserMatch> findPage(Page<UserMatch> page, UserMatch userMatch) {
        // 生成数据权限过滤条件（dsf为dataScopeFilter的简写，在xml中使用 ${sqlMap.dsf}调用权限SQL）
        return super.findPage(page, userMatch);
    }

    @Override
    @Transactional(readOnly = false)
    public void save(UserMatch userMatch) {
        super.save(userMatch);
    }

    @Override
    @Transactional(readOnly = false)
    public void delete(UserMatch userMatch) {
        super.delete(userMatch);
    }

}
